package com.heima.stu_system;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        ArrayList<Student> list = new ArrayList<>();
        StudentSystem studentSystem = new StudentSystem(list);
        Student ps1 = new PrimaryStudent("小明",8,"五");
        Student hs1 = new HighSchoolStudent("大明",21,"数学");
        studentSystem.addStudent(ps1);
        studentSystem.addStudent(hs1);
        studentSystem.displayStudents();
    }
}
